home *** CD-ROM | disk | FTP | other *** search
- unit Mono1;
-
- interface
-
- uses
- SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
- Forms, Dialogs, StdCtrls, WinCrt, debmono;
-
- type
- TForm1 = class(TForm)
- Button1: TButton;
- Button2: TButton;
- Button3: TButton;
- Button4: TButton;
- Button5: TButton;
- DM: TDebMono;
- procedure Button2Click(Sender: TObject);
- procedure Button1Click(Sender: TObject);
- procedure Button3Click(Sender: TObject);
- procedure Button4Click(Sender: TObject);
- procedure Button5Click(Sender: TObject);
- private
- { Private declarations }
- public
- { Public declarations }
- end;
-
-
- var
- Form1: TForm1;
- ctr: word;
-
- implementation
-
- {$R *.DFM}
-
- procedure TForm1.Button1Click(Sender: TObject);
- begin
- Inc(ctr);
- DM.Text := Format('Called %.2d %.4x %p',[ctr,ctr,ptr($1234,$6789)]);
- DM.Text := Format('!%.2dStat %.4d',[ctr,ctr]);
- end;
-
- procedure TForm1.Button2Click(Sender: TObject);
- begin
- DM.Text := 'Pgm Ended';
- Halt;
- end;
-
- procedure TForm1.Button3Click(Sender: TObject);
- begin
- dm.Nodisplay := 0;
- end;
-
- procedure TForm1.Button4Click(Sender: TObject);
- begin
- dm.Nodisplay := 1;
- end;
-
- procedure TForm1.Button5Click(Sender: TObject);
- begin
- Inc(ctr);
- MonoText(Format('Testing as function, ctr=%d',[ctr]));
- end;
-
- end.
-